package inject

import (
	"gitee.com/kordar/goadmin/admin/repository"
	"github.com/kordar/gorbac"
	"github.com/redis/go-redis/v9"
	"go.uber.org/dig"
	"gorm.io/gorm"
	"labelsys/dataset/controller"
	"labelsys/dataset/service"
)

type DatasetDB struct {
	dig.In
	DB    *gorm.DB              `name:"mysql.sys"`
	Redis redis.UniversalClient `name:"goredis.sys"`
}

type ControllerParams struct {
	dig.In
	service.DatasetService
	service.DatasetUploadService
}

type RouterParams struct {
	dig.In
	AdminRepos  *repository.AdminRepository
	Rbac        *gorbac.RbacService
	DatasetCtrl *controller.DatasetController
}
